package com.prs.crm.service.stock;

import java.util.Collection;
import java.util.List;
import java.util.Map;

import com.prs.crm.domain.stock.Product;
import com.prs.crm.domain.stock.StockAlert;
import com.prs.crm.domain.store.StoreRoom;
import com.prs.crm.service.BaseService;

public interface StockAlertService extends BaseService<StockAlert> {
	Collection<StockAlert> getStockAlertsByProduct(Product product);

	Collection<StockAlert> getOnestockAlert(Product product, StoreRoom storeRoom);

	Collection<StockAlert> getAllStockAlerts();
	void saveStockAlert(StockAlert[] stockAlerts, Product product,
			StoreRoom[] storerooms, String[] maxNumbers, String[] minNumbers);

	Map<String, Double> validateOutStore(StoreRoom storeRoom,
			Product[] products, double[] integers,
			ProductStoreService productStoreService);

	Map<String, Double> validateInStore(StoreRoom storeRoom,
			Product[] products, double[] integers,
			ProductStoreService productStoreService);
	public List<String> validateStockAlert(StoreRoom storeRoom,Product[] products);
	
}
